<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page isELIgnored="false" %>
<html>
<head>
    <title>未登录</title>
    <base href="<%=request.getContextPath()%>/">
    <script src="static/jquery/jquery.js"></script>
    <style>
        div {
            height: 300px;
            width: 80%;
            margin: 20px auto;
        }

        p {
            text-align: center;
        }

        a {
            margin-right: 10px;
            color: #01aaed;
        }
    </style>
</head>
<body>
<div>
    <p>您未登录，<span>5</span>秒后跳转登录！</p>
    <p><a href="javascript:;">点我</a>直接登录</p>
</div>
</body>
<script>
    $("a").click(function () {
        top.location.replace("admin/login")
    })
    let num = 5;
    setInterval(function () {
        num--;
        if (num > 0) {
            $("span").text(num);
        } else {
            top.location.replace("admin/login")
        }
    }, 1000);
</script>
</html>
